/**
 * 
 */
package com.bitBusy.manageyourriches.database.queries;

import java.util.Map;

import android.database.sqlite.SQLiteDatabase;

/**
 * Interface for classes (tables) in which subcategories
 * are to be updated, every time a category/subcategory (add/remove) update
 * is made in any table of the default db
 * @author SumaHarsha
 *
 */
public interface UpdateSubcategories {
	
	/**
	 * Method to add more than one category for 
	 * a given category
	 * @param the category name for which subcategory names are to be updated
	 * @param list of subcategory names and img id
	 */
	public void addSubcategories(String the_categoryName, Map<String, Integer> the_subcategories);

	/**
	 * Used only during initialization
	 * @param name
	 * @param subcategoryNames
	 * @param the_db the database object
	 */
	public void addSubcategories(String name, Map<String, Integer> the_subcategories,
			SQLiteDatabase the_db);

	
	// MIGHT NEED TO ADD AN ANOTHER METHOD FOR WITHOUT THE DB PARAMETER

}
